Hacked to use the debug data; this skips King's API.
